<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
<head>
<title>修改用户权限组</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<SCRIPT language="JavaScript" src="/js/FoshanRen.js"></SCRIPT>
<script language="JavaScript">
function checkfm(){
	var name=document.getElementById("name");
	if (trim(name.value)==""){
		document.getElementById("name_info").innerHTML="权限组名称不能为空";
		name.focus();
		return false;
	}
	document.getElementById("name_info").innerHTML="";
	return true;
}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<s:form action="privilegegroup_edit.html" method="post" onsubmit="return checkfm()">
 <s:hidden name="groupid"/>
  	<table width="98%" height="35" border="0" align="center"
  	style="margin-top: 6px;margin-bottom: 10px;">
  	<tr style="background-color: #9CDCF9;"><td class="STYLE1">
  		&nbsp;&nbsp;&nbsp;&nbsp;你现在的位置是： &nbsp;用户权限组管理&nbsp; &gt;&gt; &nbsp;修改用户权限组</td>
  	</tr>
  	</table>
  <table width="98%" border="0" align="center">
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > </td>
      <td width="75%">
        <font color="#FF0000"><s:fielderror/></font>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">权限组名称：</div></td>
      <td width="75%"> <s:textfield id="name" name="privilegegroup.name" size="20" maxlength="20"
      					onblur="checkfm()"/>
        <font color="#FF0000">* <span id="name_info"></span></font></td>
    </tr>
    <tr bgcolor="f5f5f5">
    	<td width="25%" > <div align="right">选择权限：</div></td>
    	<td width="75%">
    <c:set var="varmodel" value=""/>
    <c:forEach items="${privileges}" var="privilege">
    	<c:if test="${privilege.id.model!=varmodel}">
    		<br/><br/><strong>${privilege.description}</strong><br/>
    	</c:if>
    	<c:set var="varmodel" value="${privilege.id.model}"/>
    	<input type="checkbox" name="privilegePKs" value="${privilege.id.model},${privilege.id.privilegeValue}"
			<c:forEach items="${selectprivileges}" var="sp">
				<c:if test="${sp==privilege}">checked</c:if>
			</c:forEach> 
		/>${privilege.name}
    </c:forEach>
    	</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > </td> 
      <td width="75%">
      	  <s:token/><br/>
          <input type="submit" value=" 确 定 " class="frm_btn">&nbsp;&nbsp;
          <input type="button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
      </td>
    </tr>
  </table>
</s:form>
<br>
</body>
</html>